//各机构证书章

let list = [
    {
        path:'zhengxin.taijieyun.com', //聊城正信
        gz:[],
        class:[{
            title:'All',
            img:require('@/assets/zhang/zhengxin.png'),
        },],
    },
    {
        path:'anshunpx.taijieyun.com',//安丘安顺
        gz:[],
        class:[{
            title:'All',
            img:require('@/assets/zhang/aqanshun.png'),
        },],
    },
    {
        path:'zhuan.taijieyun.com',//济宁筑安
        gz:[],
        class:[{
            title:'All',
            img:require('@/assets/zhang/zhuan.png'),
        },],
    },
    {
        path:'cpakzx.taijieyun.com',//茌平安科
        gz:[],
        class:[{
            title:'All',
            img:require('@/assets/zhang/anke.png'),
        },],
    },
    {
        path:'huikang.taijieyun.com',//菏泽惠康
        gz:[],
        class:[{
            title:'All',
            img:require('@/assets/zhang/huikang.png'),
        },],
    },
    {
        path:'xinhua.taijieyun.com',//菏泽新华
        gz:[],
        class:[{
            title:'All',
            img:require('@/assets/zhang/xinhua.png'),
        },],
    },
    {
        path:'putai.taijieyun.com',//河南普泰
        gz:[],
        class:[{
            title:'All',
            img:require('@/assets/zhang/putai.png'),
        },],
    },
    {
        path:'qianan.taijieyun.com',//潍坊乾安
        gz:[],
        class:[{
            title:'All',
            img:require('@/assets/zhang/qianan.png'),
        },],
    },
    {
        path:'gyaq.taijieyun.com',//安徽涡阳
        gz:[],
        class:[{
            title:'All',
            img:require('@/assets/zhang/gyaq.png'),
        },],
    },
     {
        path:'bbxdf.taijieyun.com',//蚌埠新东方
        gz:[],
        class:[{
            title:'All',
            img:require('@/assets/zhang/bbxdf.png'),
        }],
    },
    {
        path:'whtl.taijieyun.com',//芜湖同力
        gz:[],
        class:[{
            title:'All',
            img:require('@/assets/zhang/whtl.png'),
        }],
    },
    {
        path:'jingkun.taijieyun.com',//安徽晶琨
        gz:[],
        class:[{
            title:'All',
            img:require('@/assets/zhang/jingkun.png'),
        }],
    },
    {
        path:'wenting.taijieyun.com',//成武文亭
        gz:[],
        class:[{
            title:'All',
            img:require('@/assets/zhang/wenting.png'),
        }],
    },
     {
        path:'tjy.taijieyun.com',//泰捷云
        gz:[
        ],
        // img:require('@/assets/zhang/tjyx.png'),
        class:[
            {
                title:'All',
                img:require('@/assets/zhang/tjyx.png'),
            },
        ],
    },
     {
        path:'zaah.taijieyun.com',//众安安环
        gz:[],
        class:[{
            title:'All',
            img:require('@/assets/zhang/zaah.png'),
        }],
    }, {
        path:'mckx.taijieyun.com',//蒙城科信
        gz:[],
        class:[{
            title:'All',
            img:require('@/assets/zhang/mckx.png'),
        }],
    }, {
        path:'hshx.taijieyun.com',//霍山华信
        gz:[],
        class:[{
            title:'All',
            img:require('@/assets/zhang/hshx.png'),
        }],
    },
      {
        path:'ankangyuan.taijieyun.com',//ankangyuan
        gz:[],
        class:[{
            title:'All',
            img:require('@/assets/zhang/ankangyuan.png'),
        }],
    },
    {
        path:'lapengfei.taijieyun.com',//六安鹏飞
        gz:[],
        class:[{
            title:'All',
            img:require('@/assets/zhang/lapengfei.png'),
        }],
    },
    {
        path:'zzpx.taijieyun.com',//六安中证
        gz:[],
        class:[{
            title:'All',
            img:require('@/assets/zhang/hshx.png'),
        }],
    },
    {
        path:'guoyue.taijieyun.com',//国跃
        gz:['一般工贸'],
        class:[
            {
                title:'All',
                img:require('@/assets/zhang/guoyue.png'),
            },
            {
                title:'济南超越',
                img:require('@/assets/zhang/chaoyue.png'),
            },
            
        ],
    },
    // {
    //     path:'guoyue.taijieyun.com',//国跃
    //     gz:['特种作业'],
    //     class:[{
    //         title:'All',
    //         img:require('@/assets/zhang/guoyue.png'),
    //     }],
    // },
    {
        path:'antai.taijieyun.com',//利辛安泰
        gz:[],
        class:[{
            title:'All',
            img:require('@/assets/zhang/antai.png'),
        }],
    },
    {
        path:'liming.taijieyun.com',//六安市黎明
        gz:[],
        class:[{
            title:'All',
            img:require('@/assets/zhang/liming.png'),
        }],
    },
    {
        path:'hwzj.taijieyun.com',//舒城县华文
        gz:[],
        class:[{
            title:'All',
            img:require('@/assets/zhang/hwzj.png'),
        }],
    },
    {
        path:'tsanping.taijieyun.com',//安评
        gz:[],
        class:[{
            title:'All',
            img:require('@/assets/zhang/tsanping.png'),
        }],
    },
    {
        path:'dkaq.taijieyun.com',//地矿安全
        gz:[],
        class:[{
            title:'All',
            img:require('@/assets/zhang/dkaq.png'),
        }],
    },
    {
        path:'huaying.taijieyun.com',//华英
        gz:[
            
        ],
        class:[{
            title:'All',
            img:require('@/assets/zhang/huaying.png'),
        }],
    },
    {
        path:'hshd.taijieyun.com',//黄山华地
        gz:[],
        class:[{
            title:'All',
            img:require('@/assets/zhang/hshd.png'),
        }],
    },
    {
        path:'lyky.taijieyun.com',//临沂矿业
        gz:['职业技能等级认定'],
        class:[{
            title:'All',
            img:require('@/assets/zhang/lyky.png'),
        }],
    },
    {
        path:'ataq.taijieyun.com',//江苏安泰安全
        gz:[],
        class:[{
            title:'All',
            img:require('@/assets/zhang/ataq.png'),
        }],
    },
    {
        path:'hczy.taijieyun.com',//烟台海城职业
        gz:[],
        class:[{
            title:'All',
            img:require('@/assets/zhang/hczy.png'),
        }],
    },
    {
        path:'hbdl.taijieyun.com',//鹤壁电力
        gz:[],
        class:[{
            title:'All',
            img:require('@/assets/zhang/hbdl.png'),
        }],
    },
    {
        path:'lxhg.taijieyun.com',//鲁西化工
        gz:[],
        class:[{
            title:'All',
            img:require('@/assets/zhang/lxhg.png'),
        }],
    },
    {
        path:'xcaq.taijieyun.com',//馨诚安全
        gz:[],
        class:[{
            title:'All',
            img:require('@/assets/zhang/xcaq.png'),
        }],
    },
    {
        path:'smkj.taijieyun.com',//科建职业
        gz:[],
        class:[{
            title:'All',
            img:require('@/assets/zhang/smkj.png'),
        }],
    },
    {
        path:'syyn.taijieyun.com',//三元远南
        gz:[],
        class:[{
            title:'All',
            img:require('@/assets/zhang/syyn.png'),
        }],
    },
    {
        path:'guohua.taijieyun.com',//国华诺信
        gz:[],
        class:[{
            title:'All',
            img:require('@/assets/zhang/guohua.png'),
        }],
    },
    {
        path:'changli.taijieyun.com',//潍坊畅力
        gz:[],
        class:[{
            title:'All',
            img:require('@/assets/zhang/changli.png'),
        }],
    },
]

export default function seal(path,gz,gred=['All']){
    let src = ''
    let isYes=false
    for(let i=0;i<list.length;i++){
        if(path.indexOf(list[i].path)!=-1){
            if(list[i].gz.length==0){
                for(let j=0;j<list[i].class.length;j++){
                    let item = list[i].class[j]
                    if(gred.includes(item.title)){
                        src=item.img
                        isYes=true
                        break
                    }else if(item.title=='All'){
                        src=item.img
                        isYes=true
                    }
                }
                break
            }else if(list[i].gz.indexOf(gz)!=-1){
                for(let j=0;j<list[i].class.length;j++){
                    let item = list[i].class[j]
                    if(gred.includes(item.title)){
                        src=item.img
                        isYes=true
                        break
                    }else if(item.title=='All'){
                        src=item.img
                        isYes=true
                    }
                }
                break
            }
        }
        
    }
    if(isYes){
        return src
    }else{
        return false
    }
}